<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改用户')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-users-edit" th:object="${chatUsers}">
            <input name="id" th:field="*{id}" type="hidden">
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">用户名：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="userName" th:field="*{userName}" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">头像：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <textarea name="headImg" class="form-control">[[*{headImg}]]</textarea>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">手机号：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="userPhone" th:field="*{userPhone}" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">密码：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="password" th:field="*{password}" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">支付密码：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="payPassword" th:field="*{payPassword}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">性别：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="sex" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}" required>-->
<!--                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{sex}"></option>-->
<!--                    </select>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">盐：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="salt" th:field="*{salt}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">用户状态</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('user_status')}">
                        <input type="radio" th:id="${'status_' + dict.dictCode}" name="status" th:value="${dict.dictValue}" th:field="*{status}" required>
                        <label th:for="${'status_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">推荐人：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="inviteId" th:field="*{inviteId}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">有效标志 1：有效 -1：无效：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="dataFlag" th:field="*{dataFlag}" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">微信唯一标识：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="vxOpenid" th:field="*{vxOpenid}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">关注人数量：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="concernNum" th:field="*{concernNum}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">被关注数量：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="concernedNum" th:field="*{concernedNum}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "zangchat/users";
        $("#form-users-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-users-edit').serialize());
            }
        }
    </script>
</body>
</html>